﻿@model IMS.DataAccess.Report

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Report</legend>
    
    <div class="display-label">Priority</div>
    <span class="display-field priority-@Model.Priority.ToLower()">@Model.Priority</span>

    <div class="display-label">Location</div>
    <span class="display-field">@Model.Location</span>

    <div class="display-label">Operator</div>
    <span class="display-field">@Model.OnSiteOperator.Name</span>

    <div class="display-label">Text</div>
    <span class="display-field">@Model.Text</span>

    <div class="display-label">Date</div>
    <span class="display-field">@String.Format("{0:g}", Model.CreateDate)</span>


    <div class="display-field">
        <img src="@ViewBag.ImgUrl" alt="photo"/>
    </div>
    
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.OperatorID }) |
    @Html.ActionLink("Back to List", "Index")
</p>

